import { _decorator, Button, Component, EventHandler, Node } from 'cc';
import { InitCards } from './InitCards';
import DataManager from './global/DataManager';
const { ccclass, property } = _decorator;

@ccclass('ThrowingSieve')
export class ThrowingSieve extends Component {
    start() {
    }
    onLoad() {
    }
    throwingSieve() {
        const sieves: number[] = []
        for (let index = 0; index < 2; index++) {
            sieves.push(Math.floor(Math.random() * 6) + 1)

        }
        DataManager.Instance.mm.sieves = sieves
        DataManager.Instance.mm.startDraw()
    }

}


